<?php require_once WEB_ROOT_FOLDER.'views/header.php'; ?>
        <h4>Zarządzaj obrazkami</h4>
        <?php
        if(isset($data['page']['content']) && is_array(($data['page']['content']))){
        ?>
        <div class="gallery">
            <?php 
            foreach($data['page']['content'] as $key => $value){
                if(isset($value['0']) && isset($value['1']) && isset($value['2'])){
                    ?>
            <a href="<?php echo SITE_ROOT;?>upload/<?php echo $value['0'];?>" title="<?php echo $value['1'];?>">
                <img src="<?php echo SITE_ROOT;?>upload/<?php echo $value['0'];?>" alt="<?php echo $value['1'];?>" width="100" height="100" />
            </a>
            <?php
                }
            }
            ?>
        </div>
        <a href="<?php echo SITE_ROOT;?>zarzadzaj-zdjeciami/dodaj.html" title="Dodaj nowe zdjecie">Dodaj nowe zdjecie</a>
        <?php
        }
        ?>
<?php        require_once WEB_ROOT_FOLDER.'views/footer.php'; ?>


